package com.itheima.collection;

import java.util.ArrayList;
import java.util.Collection;

/*
增强for
 */
public class Demo03 {
    public static void main(String[] args) {
        Collection<String> list= new ArrayList<>();
        list.add("坤坤");
        list.add("签签");
        list.add("滔滔");
        list.add("小鹿鹿");
        /*for(String s:list){
            System.out.println(s);
        }*/
        for (String s : list) {
            System.out.println(s);
        }

           // int[] arr= {11,22,33,44,55};

    }

}
